<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mupdf</Name>
        <Homepage>https://mupdf.com/</Homepage>
        <Packager>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Packager>
        <License>AGPL3</License>
        <IsA>app:gui</IsA>
        <Summary>Lightweight PDF and XPS viewer.</Summary>
        <Description>
            MuPDF is a lightweight open source software framework for viewing and converting PDF, XPS, and E-book documents.
        </Description>
        <Archive sha1sum="eb6e6c468416f7ad9f37be33ae00f899dad237e2" type="targz">
            https://mupdf.com/downloads/archive/mupdf-1.21.1-source.tar.gz
        </Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>libXi-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>libglvnd-devel</Dependency>
            <Dependency>openjpeg2-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>leptonica-devel</Dependency>
            <Dependency>tesseract-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>shared-lib.patch</Patch>
            <Patch>fix-build-on-big-endian.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>mupdf</Name>
        <RuntimeDependencies>
            <Dependency>curl</Dependency>
            <!-- <Dependency>mesa</Dependency> -->
            <Dependency>zlib</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>harfbuzz</Dependency>
            <Dependency>libglvnd</Dependency>
            <Dependency>libXrandr</Dependency>
            <Dependency>openjpeg2</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>mupdf-devel</Name>
        <Summary>Development files for mupdf</Summary>
        <RuntimeDependencies>
            <Dependency release="current">mupdf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/mupdf</Path>
            <Path fileType="header">/usr/include/mupdf/fitz</Path>
            <Path fileType="header">/usr/include/mupdf/pdf</Path>
        </Files>
    </Package>

    <Package>
        <Name>mupdf-doc</Name>
        <Summary>mupdf html documentation.</Summary>
        <RuntimeDependencies>
            <!-- <Dependency release="current">mupdf</Dependency> -->
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc/mupdf</Path>
        </Files>
    </Package>

    <History>
        <Update release="13">
            <Date>2022-12-16</Date>
            <Version>1.21.1</Version>
            <Comment>Version bump</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="12">
            <Date>2022-10-07</Date>
            <Version>1.20.3</Version>
            <Comment>Version bump</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="11">
            <Date>2022-07-06</Date>
            <Version>1.20.0</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="10">
            <Date>2022-04-14</Date>
            <Version>1.19.1</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="9">
            <Date>2021-10-15</Date>
            <Version>1.19.0</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="8">
            <Date>2021-03-14</Date>
            <Version>1.18.0</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="7">
            <Date>2020-02-22</Date>
            <Version>1.16.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2019-09-28</Date>
            <Version>1.16.1</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="5">
            <Date>2019-06-04</Date>
            <Version>1.15.0</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="4">
            <Date>2019-04-25</Date>
            <Version>1.14.0</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="3">
            <Date>2018-08-09</Date>
            <Version>1.12.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2018-02-11</Date>
            <Version>1.12.0</Version>
            <Comment>Version Bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2017-07-13</Date>
            <Version>1.11</Version>
            <Comment>First Release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
